/**
 * 
 */
package fehlerHandling;

import javax.swing.JOptionPane;
import javax.swing.JPanel;

/**
 * 
 * 
 * @date 23.03.2012
 * @author rs
 * @version
 * 
 */
public class Warning extends Exception {

	private String message;

	/**
	 * Konstruktor
	 * 
	 * @param menueController
	 */
	public Warning(String text) {
		message = text;
	}

	public String getMessage() {
		JPanel panel = new JPanel();

		JOptionPane.showMessageDialog(panel, message, "Info",
				JOptionPane.WARNING_MESSAGE);
		
		return "message";
	}

}
